package com.share51.config.mobile;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author gaobo
 * @version 1.0.0
 * @ClassName DeviceDelegatingViewResolverProperties
 * @Description TODO
 * @Date 2020/11/2 10:10
 */
@ConfigurationProperties(prefix = "spring.mobile.devicedelegatingviewresolver")
public class DeviceDelegatingViewResolverProperties {

    private boolean enableFallback;
    private String normalPrefix = "";
    private String normalSuffix = "";
    private String mobilePrefix = "mobile/";
    private String mobileSuffix = "";
    private String tabletPrefix = "tablet/";
    private String tabletSuffix = "";
    private boolean enabled;

    public DeviceDelegatingViewResolverProperties() {
    }

    public void setEnableFallback(boolean enableFallback) {
        this.enableFallback = enableFallback;
    }

    public boolean isEnableFallback() {
        return this.enableFallback;
    }

    public String getNormalPrefix() {
        return this.normalPrefix;
    }

    public void setNormalPrefix(String normalPrefix) {
        this.normalPrefix = normalPrefix;
    }

    public String getNormalSuffix() {
        return this.normalSuffix;
    }

    public void setNormalSuffix(String normalSuffix) {
        this.normalSuffix = normalSuffix;
    }

    public String getMobilePrefix() {
        return this.mobilePrefix;
    }

    public void setMobilePrefix(String mobilePrefix) {
        this.mobilePrefix = mobilePrefix;
    }

    public String getMobileSuffix() {
        return this.mobileSuffix;
    }

    public void setMobileSuffix(String mobileSuffix) {
        this.mobileSuffix = mobileSuffix;
    }

    public String getTabletPrefix() {
        return this.tabletPrefix;
    }

    public void setTabletPrefix(String tabletPrefix) {
        this.tabletPrefix = tabletPrefix;
    }

    public String getTabletSuffix() {
        return this.tabletSuffix;
    }

    public void setTabletSuffix(String tabletSuffix) {
        this.tabletSuffix = tabletSuffix;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }
}
